package com.sunda.spmsoversea.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 交货单明细采购订单明细关系表
 * </p>
 *
 * @author Wayne
 * @since 2021-12-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("OVERSEA_DN_DTL")
@ApiModel(value="OverseaDnDtl对象", description="交货单明细采购订单明细关系表")
public class OverseaDnDtl implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "交货单明细表自增ID")
    @TableId(value = "AUTO_ID_DN", type = IdType.AUTO)
    private Integer autoIdDn;

    @ApiModelProperty(value = "交货单号")
    @TableField("SAP_DELIVERY_NOTE")
    private String sapDeliveryNote;

    @ApiModelProperty(value = "交货单行号")
    @TableField("SAP_DELIVERY_NOTE_ITEM")
    private String sapDeliveryNoteItem;

    @ApiModelProperty(value = "参考采购凭证号PO")
    @TableField("SAP_PURCHASE_ORDER")
    private String sapPurchaseOrder;

    @ApiModelProperty(value = "参考采购凭证号PO行号")
    @TableField("SAP_PURCHASE_ORDER_ITEM")
    private String sapPurchaseOrderItem;

    @ApiModelProperty(value = "发货工厂")
    @TableField("WERKS_DELIVERY")
    private String werksDelivery;

    @ApiModelProperty(value = "发货仓库地址")
    @TableField("WHS_LOCATION_CODE_DELIVERY")
    private String whsLocationCodeDelivery;

    @ApiModelProperty(value = "收货工厂")
    @TableField("WERKS_RECEIVE")
    private String werksReceive;

    @ApiModelProperty(value = "收货仓库地址")
    @TableField("WHS_LOCATION_CODE_RECEIVE")
    private String whsLocationCodeReceive;

    @ApiModelProperty(value = "物料编号")
    @TableField("MATERIAL_NO")
    private String materialNo;

    @ApiModelProperty(value = "基本单位")
    @TableField("BASIC_UNIT")
    private String basicUnit;

    @ApiModelProperty(value = "销售单位")
    @TableField("UNIT_SALES")
    private String unitSales;

    @ApiModelProperty(value = "交货数量/应收基本单位数量")
    @TableField("RECEIVABLE_QTY_BASIC_UNIT")
    private Double receivableQtyBasicUnit;

    @ApiModelProperty(value = "交货数量/应收销售单位数量")
    @TableField("RECEIVABLE_QTY_UNIT_SALES")
    private Double receivableQtyUnitSales;

    @ApiModelProperty(value = "实收基本单位数量")
    @TableField("ACTUAL_QTY_BASIC_UNIT")
    private Double actualQtyBasicUnit;

    @ApiModelProperty(value = "实收销售单位数量")
    @TableField("ACTUAL_QTY_UNIT_SALES")
    private Double actualQtyUnitSales;

    @ApiModelProperty(value = "储位信息")
    @TableField("STORAGE_INFO")
    private String storageInfo;

    @ApiModelProperty(value = "行备注信息")
    @TableField("REMARKS")
    private String remarks;

    @ApiModelProperty(value = "行评论信息/预留")
    @TableField("COMMENTS")
    private String comments;

    @ApiModelProperty(value = "箱码")
    @TableField("BOX_NOTE")
    private String boxNote;

    @ApiModelProperty(value = "箱码行号(对应箱码明细表的ITEM字段)")
    @TableField("BOX_NOTE_ITEM")
    private String boxNoteItem;

    @ApiModelProperty(value = "国内实际发货基本单位数量")
    @TableField("DOMESTIC_ACTUAL_QTY")
    private Double domesticActualQty;

    @ApiModelProperty(value = "SPMS需求来源号")
    @TableField("DEMAND_NO")
    private String demandNo;

    @ApiModelProperty(value = "SPMS需求来源行号")
    @TableField("DEMAND_ITEM")
    private String demandItem;

    @ApiModelProperty(value = "需求申请人")
    @TableField("DEMANDER")
    private String demander;

    @ApiModelProperty(value = "数据状态(默认0能被SAP更新数据；1禁止更新数据；)")
    @TableField("DATA_STATUS")
    private String dataStatus;

    @ApiModelProperty(value = "数据版本号")
    @TableField("DATA_VERSION")
    private Integer dataVersion;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private Date updateTime;


}
